﻿using gl_SMT;
using gl_SMT.Model;
using gl_SMT.View;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DataAcquisition
{
    /// <summary>
    /// MachineModel.xaml 的交互逻辑
    /// </summary>
    public partial class MachineModel : UserControl
    {
        public MachineModel()
        {
            InitializeComponent();
            this.Loaded += MachineModel_Loaded;
        }

        #region  变量
        public string ControlName { get; set; }
        public delegate void CloseEquipmentInformation();
        public CloseEquipmentInformation closeEquipmentInformation;
        #endregion

        private void MachineModel_Loaded(object sender, RoutedEventArgs e)
        {
            this.Name = ControlName;
        }

        private void btn_Details_Click(object sender, RoutedEventArgs e)
        {
            EventHub.RequestTab(txt_Model.Tag.ToString() + " "+txt_Model.Text);
        }
    }
}
